<link rel="shortcut icon" href="favicon.ico"> 
    <link href="__ROOT__/Public/Admin/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__ROOT__/Public/Admin/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="__ROOT__/Public/Admin/css/animate.css" rel="stylesheet">
    <link href="__ROOT__/Public/Admin/css/style.css?v=4.1.0" rel="stylesheet">
    <link rel="stylesheet" href="__ROOT__/Public/Admin/css/welcome.css" />
<style type="text/css">
    .label{font-weight: 400;}
</style>

<body class="gray-bg">
    <div class="wrapper wrapper-content  animated fadeInRight">
        <div class="row">
            
                <div class="ibox">
                    <div class="ibox-content">
                        
                        <ul class="nav nav-tabs">
                                <li class="active"><a data-toggle="tab" href="#tab-1"><i class="fa fa-bullhorn"></i>消息列表</a>
                                </li>
                          
                                <li class=""><a href="<?=U('Admin/Message/send')?>">发送消息</a></li>
                         
                            </ul>
                         <form class="well form-search form-inline" action="{:U('Admin/Message/index')}" method="post" enctype="multipart/form-data">
	                        <div class="input-group">
	                            <input type="text" name="keyword" placeholder="查找用户/标题" value="{:I('request.keyword/s','')}" class="input form-control" style="width: 96%;">
	                            <span class="input-group-btn">
                                    <button type="submit" class="btn btn btn-primary"> <i class="fa fa-search"></i> 搜索</button>
                                </span>
	                        </div>
                        </form>
                       
                            
                        <div class="tab-content">
                            <div id="tab-1" class="tab-pane active">
                                    <table class="table table-hover table-bordered table-list" data-mobile-responsive="true">
                                        <thead>
                                            <tr>
                                                <th width="50px">序号</th>
                                                <th width="150px">标题</th>
                                                <th width="100px">发送用户</th>
                                                <th width="150px">发送时间</th>
                                                <th>操作</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                        <if condition="count($Messages) lt 1">
                                            <tr>
                                                <td colspan="10">查无数据</td>
                                            </tr>
                                            <else/>
                                            <foreach name="Messages" item="vo">
                                                <tr>
                                                    <td>{$key + 1}</td>
                                                    <td>{$vo.Title}</td>
                                                    <td>
                                                        <if condition="$vo['TrueName']!=''">
                                                          {$vo.TrueName}
                                                          <else/>
                                                          {$vo.UserName}
                                                        </if>
                                                    </td>
                                                    <td>{$vo.SendTime}</td>
                                                    <td>
                                                        <a class="show-user label label-info" id="{$vo.ID}" href="{:U('Admin/Message/show',array('id'=>$vo['ID']))}">查看</a>

                                                      
                                                        <a class="delete-user label label-danger js-ajax-delete" id="{$vo.ID}" href="<?=U('Admin/Message/delete',array('id'=>$vo['ID']))?>">删除</a>
                                                        
                                                    </td>
                                                </tr>
                                            </foreach>
                                        </if>
                                        </tbody>
                                    </table>
                                {$page}
                            </div>
                        </div>
                        
                    </div>
                </div>
            
        </div>
    </div>
    <!-- 全局js -->
    <script src="__ROOT__/Public/Admin/js/jquery.min.js?v=2.1.4"></script>
    <script src="__ROOT__/Public/Admin/js/bootstrap.min.js?v=3.3.6"></script>
	<script>
	var GV = {
	    ROOT: "__ROOT__/",
	    WEB_ROOT: "__WEB_ROOT__/",
	    JS_ROOT: "public/js/"
	};
	</script>
	<script src="__PUBLIC__/admin/js/wind.js"></script>
	<script type="text/javascript" src="__PUBLIC__/admin/js/common.js"></script>
    <!-- table -->
    <script src="__ROOT__/admin/public/HiAdmin/js/tableCheckbox.js"></script>
</body>
</html>
